const getHomeResultData = require('../../data/home_search')

module.exports = (req, res) => {
  const { _label_like } = req.query
  const allResult = getHomeResultData()
  const list = allResult.list.filter(item => item.label.includes(_label_like))

  return res.success({
    list
  })
}
